package com.ibm.cps.message.validation;

import com.fasterxml.jackson.databind.node.ObjectNode;
import com.ibm.cps.message.MessageFields;
import com.ibm.util.exception.CPSException;

public class DFTProcessorValidator extends IProcessorValidator {

	@Override
	public void validatePostMessage(ObjectNode element) throws CPSException {

		// assign processorid and change parent processors to array
		ValidatorUtil.commonProcess(element);

		String[] intParas = { MessageFields.COEFFICIENT };
		String[] strParas = { MessageFields.OUTPUT_FIELD_NAME };
		String[] arrayParas = { MessageFields.PARENTPROCESSORS };

		ValidatorUtil.validateAllTypeFields(element, strParas, arrayParas,
				null, intParas);
	}

}
